getOptions(["UI.ReplyAndAt"], (function(options)
{
if(!options.ReplyAndAt)
	return;

var script_code = '\
if(!quickpost) return;\
var __riverside_plus_old_quickpost = quickpost;\
quickpost = (function(e){\
	if(e.ctrlKey && e.keyCode == 13 && e.shiftKey)\
	{\
	var form = document.getElementsByName("FORM")[0];\
	var old = form.onsubmit;\
	form.onsubmit = (function()\
	{\
		old();\
		var textarea = document.getElementById("textarea");\
		textarea.value = textarea.value.replace(\
			/(\\[quote\\]引用(?:楼主)|(?:第\\d+楼))(.*?)(于[0-9 :-]+发表的)/, "$1@$2#$3");\
	});\
	}\
	__riverside_plus_old_quickpost(e);\
});\
\
';

var script = document.createElement("script");
script.type = "text/javascript";
script.appendChild(document.createTextNode(script_code));
document.body.appendChild(script);

}));

